{extend name="base" /} {block name="body"}
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">

        <li class="layui-this">七牛存储配置</li>
    </ul>
</div>
<form class="layui-form form-container" data-url="{:url('admin/service/updateqiniu')}" localtion-url="{:url('service/qiniu')}">

    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <div class="layui-form-item">
                <label class="layui-form-label">开关</label>
                <div class="layui-input-block">
                    <input type="radio" name="qiniu[status]" value="1" title="开启" {if condition="@$qiniu.status eq 1" }checked{/if}>
                    <input type="radio" name="qiniu[status]" value="0" title="关闭" {if condition="@$qiniu.status eq 0" }checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">AccessKey</label>
                <div class="layui-input-block">
                    <input type="text" name="qiniu[AccessKey]" value="{$qiniu.AccessKey|default=''}" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">SecretKey</label>
                <div class="layui-input-block">
                    <input type="text" name="qiniu[SecretKey]" value="{$qiniu.SecretKey|default=''}" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">存储空间（bucket）</label>
                <div class="layui-input-block">
                    <input type="text" name="qiniu[bucket]" value="{$qiniu.bucket|default=''}" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">域名(http开头)</label>
                <div class="layui-input-block">
                    <input type="text" name="qiniu[domain]" value="{$qiniu.domain|default='http://xxxxx'}" placeholder="http(s)://" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">空间性质</label>
                <div class="layui-input-block">
                    <input type="radio" name="qiniu[global]" value="1" title="公有空间" {if condition="$qiniu.global eq 1" }checked{/if}>
                    <input type="radio" name="qiniu[global]" value="0" title="私有空间" {if condition="$qiniu.global eq 0" }checked{/if}>
                </div>
            </div>
            <div class="formbtngroup">
                <a target="_blank" href="https://www.laysns.com/thread/730.html">配置文档 <i class="layui-icon layui-icon-tips"></i></a>
                <button id="creatlink" class="layui-btn layui-btn-sm" lay-submit="" type="submit" lay-filter="formadd">保存</button>
            </div>
        </div>

</form>

{/block} {block name="js"}
<script type="text/javascript" src="__ADMIN__/js/formadd.js"></script>

{/block}